//
//  SPBluetoothlistPopView.h
//  Spinning
//
//  Created by Neil on 2018/1/26.
//  Copyright © 2018年 com. All rights reserved.
//

#import <MMPopupView/MMPopupView.h>

@protocol SPBluetoothListDelegate;
@class CBPeripheral;
@interface SPBluetoothListPopView : UIView

@property (nonatomic, strong) NSMutableArray  *periphealArray;
@property (nonatomic, strong) NSMutableArray  *rememberArray;
@property (nonatomic, strong) UITableView  *listTableView;

@property (nonatomic, strong) CBPeripheral *per;;


@property (nonatomic, weak) id <SPBluetoothListDelegate> delegate;


//-(void)insertTableViewWithPeripheral:(NSString *)name;
- (void)show;
- (void)hide;

@end

@protocol SPBluetoothListDelegate <NSObject>

- (void)connectInListToPeripheral:(NSString *)name row:(NSInteger)row;
- (void)scanAction;
- (void)breakBtnResponderByTableViewWithRow:(NSInteger)row;
@end


